<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html;charset=utf-8"%>
<%@ include file="/pub/siteinclud.jsp"%>

<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="Content-Language" content="zh-CN" />
<title>横向下拉菜单</title>
<style type="text/css">
<!--
* {margin:0;padding:0;border:0;}

body {
 font-family: arial, 宋体, serif;
        font-size:12px;
        background-color: #eff1f0;
}

#nav {
  height: 24px;  list-style-type: none;  padding-left:20%;

line-height:24px;overflow:hidden;background:#163f15;
}

#nav a {
 display: block; width: 80px; text-align:center;
}

#nav a:link  {
 color:#EEE; text-decoration:none;
}
#nav a:visited  {
 color:#EEE;text-decoration:none;
}
#nav a:hover  {
 color:#FFF;text-decoration:none;font-weight:bold;
 background: url(<%=imgPath %>/cdbj.jpg) center;
}

#nav li {
 float: left; width: 80px;
}


#nav li ul {
 list-style-type: none; 
 padding-left:20%;
 text-align:left;
 left: -999px;
 width: 520px; //注意,这里一定要设置宽度;
 position: absolute;
 background: url(<%=imgPath %>/ercdbj.gif);
 height:39px
}

#nav li ul li{
  float: left;width: 80px; //float就是子菜单横向的关键,可以继承父菜单而省略float
}


#nav li ul a{
 display: block; width: 80px;text-align:center ;
}

#nav li ul a:link  {
 color:#F1F1F1; text-decoration:none;
}
#nav li ul a:visited  {
 color:#F1F1F1;text-decoration:none;
}
#nav li ul a:hover  {
 color:#FFF;text-decoration:none;font-weight:normal;
 background: url(<%=imgPath %>/cdbj.jpg) center;
}

#nav li:hover ul {
 left:0px;
 top:-39px;
 width:80%;
 background: url(<%=imgPath %>/ercdbj.gif) left top repeat-x;
}

#nav li.sfhover ul {
 left:0px; 
 top:-39px;
 width:80%;
 background: url(<%=imgPath %>/ejcdbj.gif) left top repeat-x;
}

#content {
 clear: left;
}


-->
</style>

<script type=text/javascript><!--//--><![CDATA[//><!--
function menuFix() {
 var sfEls = document.getElementById("nav").getElementsByTagName("li");
 for (var i=0; i<sfEls.length; i++) {
  sfEls[i].onmouseover=function() {
  this.className+=(this.className.length>0? " ": "") + "sfhover";
  }
  sfEls[i].onMouseDown=function() {
  this.className+=(this.className.length>0? " ": "") + "sfhover";
  }
  sfEls[i].onMouseUp=function() {
  this.className+=(this.className.length>0? " ": "") + "sfhover";
  }
  sfEls[i].onmouseout=function() {
  this.className=this.className.replace(new RegExp("( ?|^)sfhover\\b"),

"");
  }
 }
}
window.onload=menuFix;

function loadurl(aurl){
	var html= $.ajax({
		  url: aurl,
		  async: false
		 }).responseText;
	document.getElementById("mainworkdiv").innerHTML="<iframe marginheight='0' fromeborder='0' marginwidth='0' style='width:100%;' onload='javascript:dyniframesize(this);'  src='"+aurl+"'></iframe>";
}

function dyniframesize(pTar) { 
if (pTar && !window.opera){ 
//begin resizing iframe 
pTar.style.display="block" 
if (pTar.contentDocument && pTar.contentDocument.body.offsetHeight){ 
//ns6 syntax 
pTar.height = pTar.contentDocument.body.offsetHeight +20; 
pTar.width = pTar.contentDocument.body.scrollWidth+20; 
} 
else if (pTar.Document && pTar.Document.body.scrollHeight){ 
//ie5+ syntax 
pTar.height = pTar.Document.body.scrollHeight+30; 
pTar.width = pTar.Document.body.scrollWidth; 
} 
} 
} 


 $(document).ready(function(){
       loadurl("<%=path%>/site/qipilang/texiao2.jsp");
   });
//--><!]]></script>
</head>
<body>
<div style="width:100%;height:24px;top:80%; position: absolute;">
<ul id="nav" style="">
<li><a href="#" onclick="loadurl('<%=path%>/site/qipilang/texiao2.jsp')">首页</a>
</li>
<li><a href="#" onclick="loadurl('<%=path%>/sys/get/texiao1')">企业文化</a>
</li>
<li><a href="#" onclick="loadurl('<%=path%>/sys/get/texiao3')">新闻中心</a>
 <ul>
 <li><a href="#">菜单三</a></li>
 <li><a href="#">菜单三</a></li>
 <li><a href="#">菜单三</a></li>
 <li><a href="#">菜单三</a></li>
 <li><a href="#">菜单三</a></li>
 </ul>
</li>
<li><a href="#" onclick="loadurl('<%=path%>/sys/get/texiao4')">产品展示</a>
 <ul>
 <li><a href="#" onclick="loadurl('<%=path%>/site/qipilang/texiao3.jsp')">黑标</a></li>
 <li><a href="#" onclick="loadurl('<%=path%>/site/qipilang/texiao3.jsp')">绿标</a></li>
 <li><a href="#" onclick="loadurl('<%=path%>/site/qipilang/texiao3.jsp')">蓝标</a></li>
 <li><a href="#" onclick="loadurl('<%=path%>/site/qipilang/texiao3.jsp')">女装</a></li>
 <li><a href="#" onclick="loadurl('<%=path%>/site/qipilang/texiao3.jsp')">配饰</a></li>
 </ul>
</li>

<li><a href="#" onclick="loadurl('<%=path%>/site/qipilang/contactme.jsp')">联系我们</a>
</li>
<li><a href="#" onclick="loadurl('<%=path%>/site/qipilang/texiao6.jsp')">诚聘英才</a>
</li>
</ul>
</div>
<div id="mainworkdiv" style="width:100%;top:0px;"></div>
</body>
</html>
